package com.huawei.demo;

import com.object.*;
import com.service.ResultOperationlmp;
import com.service.StoneScissorClothImpl;
import lombok.extern.slf4j.Slf4j;

import java.util.Scanner;

@Slf4j
public class Demo{
    public static void main(String[] args) throws InterruptedException {
        Person person = new Person();
        Result result = new Result();
        Person person1 = new Person();
        thread thread1 = new thread();
        Dog dog = new Dog();
        int playerWinNumber = 0;
        int computerWinNumber = 0;
        int dogfallNumber = 0;
        Demo r = new Demo();
        Coumputer coumputer = new Coumputer();
        ResultOperationlmp p = new ResultOperationlmp();
        StoneScissorClothImpl an = new StoneScissorClothImpl();
        Scanner input = new Scanner(System.in);//调用输入
        //String uer = input.next();
        //log.info(person1.setPreson());
        p.gameStandard();
        dog.run();
        /*person1.start();

        // 演示主线程继续向下执行
        while (true) {
            printThreadInfo();
            Thread.sleep(1000);
        }
    }

     * 输出当前线程的信息

    private static void printThreadInfo() {
        System.out.println("当前运行的线程名为： " + Thread.currentThread().getName());
    }*/
        //log.info("你本轮游戏：赢了"+p.rockPaperScissorsByPersonWin(playerWinNumber)+"局 平了"+p.rockPaperScissorsByPersonandComputerDraws()+"局 输了"+computerWinNumber+"局");
        //System.out.println();
        //rockPaperScissorsByPersonWin();
        //rockPaperScissorsByComputerWin();
        //rockPaperScissorsByPersonandComputerDraws();

        //System.out.println("平局");
        //log.info("平局");
    }


    private static void rockPaperScissorsByPersonandComputerDraws() {

        log.info("失败");
    }

    private static void rockPaperScissorsByComputerWin() {
        log.info("胜利");
    }

    private static void rockPaperScissorsByPersonWin() {
        log.info("平局");
    }
}
